<?php
namespace Home\Controller;

use Think\Controller;

class MockController extends Controller
{

    public function getSaleJoinShopRankList()
    {
        $data = array();
        for ($i = 1; $i<=10; $i++) {
            $arr = array(
                'rank' => $i,
                'name' => "黑米测试" . $i,
                'amount' => 100 - $i
            );
            $data[] = $arr;
        }
        $res = array(
            'success' => true,
            'data' => $data,
            'message' => 'success',
            'code' => 0
        );
        $this->ajaxReturn($res);
    }
}
